//
//  DataParser.h
//  PlayBall
//
//  Created by Edward Zhang on 12-5-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JddLotteryIssue.h"

@interface JddDataParser : NSObject

//分析注册结果信息
+(BOOL)parseRegisterResult:(NSData*)result;
//分析注册登录信息
+(NSString *)parseLoginResult:(NSData*)result;
//分析并核实密码
+(BOOL)parseGetVerifyCodeRestul:(NSData*)result;
+(NSString *)parseBindMobileResult:(NSData*)result;
+(BOOL)parseUserInfoResult:(NSData*)result;
+(BOOL)parseShopInfoResult:(NSData*)result;
+(BOOL)parseTogetherBuyResult:(NSData*)result;
+(BOOL)parseProvinceListResult:(NSData*)result provinceArray:(NSMutableArray*)provinceArray;
+(BOOL)parseBankListResult:(NSData*)result bankArray:(NSMutableArray*)bankArray;
+(BOOL)parseBranchBankListResult:(NSData*)result branchBankArray:(NSMutableArray*)branchBankArray;
+(NSArray*)parseCityListResult:(NSData*)result province:(NSString*)province cityDictionary:(NSMutableArray*)cityDictionary;
+(BOOL)parseBindCardResult:(NSData*)result;
+(BOOL)parseModifyPasswordResult:(NSData*)result;
+(NSString*)parseAccountDetailResult:(NSData*)result;
+(BOOL)parseLotteryIssueResult:(NSData*)result lotteryIssue:(JddLotteryIssue*)lotteryIssue;
+(BOOL)parseBuyResult:(NSData*)result;
+(NSString*)parseSportLotteryIssueResult:(NSData*)result;
+(BOOL)parseDiscountResult:(NSData*)result discountNo:(NSMutableString*)discountNo discountAmount:(NSNumber*)discountAmount;
+(NSString*)parsefollowNumberResult:(NSData *)result;
//购买方案
+(NSString*)parseBuyHistoryResult:(NSData*)result;
+(NSString*)parseBuyHistoryDetailResult:(NSData*)result;
+(NSString*)parseLotHallResult:(NSData*)result;
//解析老接口返回数据 以后去掉
+(NSString*)oldparseBuyHistoryDetailResult:(NSData*)result;

+(NSString*)parseVersionResult:(NSData*)result;
+(BOOL)paseAlipayInfoResult:(NSData *)result;
+(void)parseSportResult:(NSData*)result bankArray:(NSMutableArray*)sportArray;

@end
